package com.yunhe.rentcars.commons.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * @author tianxuan
 * @version V1.0
 * @Date 2017/10/26 0026 上午 11:53
 * @Description:
 */
public class Menu {
    private Long id;

    private String name;

    private String uri;

    private List<Menu> submenus;  //子菜单

    public Menu(){}

    public Menu(Long id, String name, String uri) {
        this.id = id;
        this.name = name;
        this.uri = uri;
        submenus = new ArrayList<>();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public List<Menu> getSubmenus() {
        return submenus;
    }

    public void setSubmenus(List<Menu> submenus) {
        this.submenus = submenus;
    }
}
